<?php

	$router = Zend_Controller_Front::getInstance()->getRouter();

	$router->addRoute('group_entry',
		new Zend_Controller_Router_Route('group/:entity_idname/:page_name/:page_param1/:page_param2/*',
			array('module'=>'dashboard', 'controller'=>'index', 'action'=>'index', 'page_name'=>'index',
				'page_param1'=>'', 'page_param2'=>'', 'entity_class'=>'group'))
	);

	$router->addRoute('group_member_join',
		new Zend_Controller_Router_Route('group/:entity_idname/join/*',
			array('module'=>'group', 'controller'=>'member', 'action'=>'join', 'entity_class'=>'group'))
	);
	$router->addRoute('group_member_part',
		new Zend_Controller_Router_Route('group/:entity_idname/part/*',
			array('module'=>'group', 'controller'=>'member', 'action'=>'part', 'entity_class'=>'group'))
	);

	$router->addRoute('group_list',
		new Zend_Controller_Router_Route('groups/*',
			array('module'=>'group', 'controller'=>'index', 'action'=>'list', 'widget_display_mode'=>'full'))
	);
	$router->addRoute('group_admin_create',
		new Zend_Controller_Router_Route('groups/create/*',
			array('module'=>'group', 'controller'=>'admin', 'action'=>'create'))
	);



	Euso_ObjectClass::register('group', 'Group_Model_Entry', NULL, 'group');
